uListing\Lib\PricingPlan\Classes\StmUserPlan C

Total Complexity 102
Dependencies 14
Dependents 13
Total lines 751
Lines of code 516
Logical lines of code 228
Comment lines 109
Methods 41
Properties 9

Methods 41

Method Rating Maintainability Complexity Lines of code
create_action()
A
37 13 72
cancel()
A
50 10 25
before_save()
A
50 8 28
get_user_plan_data()
A
45 7 40
checkLimitForAdd()
A
55 8 18
getList()
S
54 6 20
api_cancel()
S
51 3 27
createNew()
S
57 3 15
setActiveStatus()
S
60 3 12
add_menu()
S
50 1 35
check_not_canceled_plan()
S
60 2 13
setMeta()
S
61 2 13
updateStatusPlanForExpired()
S
58 1 16
get_first_index()
S
68 2 7
removeFeatureListingForExpired()
S
59 1 15
checkExpired()
S
73 2 5
removeLimit()
S
67 2 8
getTypeList()
S
67 2 7
payment_completed()
S
71 2 6
render_index_view()
S
70 2 5
getStatus()
S
64 2 9
get_searchable_fields()
S
63 1 13
updateStatusListingForExpired()
S
62 1 11
generate_user_plan_data()
S
69 1 7
render_index()
S
78 1 3
get_active_plans_count()
S
72 1 6
init()
S
71 1 5
get_user_plan_meta()
S
70 1 6
checkPlansExpired()
S
73 1 5
stm_user_plans_screen_option()
S
64 1 10
getUserPlanByAgreementId()
S
67 1 8
getUserPlanByStripeId()
S
67 1 8
deleteMeta()
S
71 1 6
render_index_add()
S
78 1 3
getMeta()
S
71 1 6
render_index_edit()
S
78 1 3
getPricingPlan()
S
80 1 3
getUser()
S
80 1 3
get_table()
S
76 1 4
user_plan_email_template()
S
67 1 7
get_primary_key()
S
81 1 3